package com.itheima.service;

import com.itheima.pojo.Result;
import com.itheima.pojo.User;

public interface UserService {
    // 根据用户名
    User findByUserName(String username);
    User findByUserId(Integer id);
    void register(String username, String password);
    User login(String username);
    User updateByUserId(User user);
    String updateCurUserAvatar(String url);
    void updateCurUserPassword(String password);
}
